<script language="javascript">
// JavaScript Document
function css3(){
	$("input[@type='text'], input[@type='password'],textarea").addClass('input_onFocus');
};
$(function(){
	css3();
	$("#ownaddproduct").validate({
		debug :false,
		errorClass: "wrong",
		rules: {
			txtPname: {required:true,minLength:5,maxLength:20}
			
		},
		messages: {
			txtPname: {required: "<smart> $errProductNameEmpty </smart>",minLength: "<smart> $errProductNameMin </smart>",maxLength: "<smart> $errProductNameMax </smart>"}
		}
	});
	$('table.bb tr td input[@type="text"]').focus(function() { $(this).parent().next().find('label').addClass('label_focus') }).blur(function() { $(this).parent().next().find('label').removeClass('label_focus') });
//alert();

})
</script>
